﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Overview
{
    class CampSite: EventSite
    {
        private int numOfSpots;
        DataHelper dh = new DataHelper();

        public CampSite(String name, int capacity, int numOfSpots)// constructor = creates a campsite with how many spots it has
            : base(name, capacity)
        {
            this.numOfSpots = numOfSpots;
           
        }
        public int NumOfSpots
        { get { return numOfSpots;} }
        
        public override int numOfVisitors()// returns number of visitors on the campsite.
        {
            return 0; //todo
        }
        public int numOfSpot()// returns the number of spots free. 
        {
            return NumOfSpots; 
        }
        public int numOfExitCamping()
        {
            return dh.campExits();

        }
        public int onTheTerrain()
        {
            return dh.onTheTerrain();
        }
        public int CampingSpotAvailable()
        {
            return NumOfSpots - dh.CampingSpotsTaken();  
        }
    }
}
